package com.guigu.huangjingservice.controller;


import com.guigu.huangjingservice.entity.Stadia;
import com.guigu.huangjingservice.service.StadiaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ABC
 * @since 2022-02-15
 */
@RestController
@RequestMapping("/huangjingservice/stadia")
public class StadiaController {

    @Autowired
    private StadiaService stadiaService;


    @GetMapping
    public List<Stadia> list() {
        return stadiaService.list(null);
    }
}

